home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIP Haziran 2001.iso / prog / share / 04 / setup.exe / MM6.Cab / F1540_Idle.action.F6A680DD_F3FB_4CF3_BABB_0D0F06E630F5 < prev    next >
Text File  |  2000-08-17  |  4KB  |  106 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <title>Idle Action</title>
  6.         <meta name="generator" content="Adobe GoLive 5">
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">Idle Action</font>
  12.             <hr>
  13.         </center>
  14.         <csactionclass name="Idle" function="CSIdleAction" nsversion="4" ieversion="4" actiontype="2">
  15.         <csactionparam name="idle" type="GLActionBoolParam"></csactionparam>
  16.         <csactionparam name="condition" type="GLActionConditionParam"></csactionparam>
  17.         </csactionclass>
  18.         <p>IE Functions Script
  19.         <script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
  20.         </p>
  21.         <p>StylePos Functions Script
  22.         <script language="JavaScript1.2" src="../../GlobalScripts/StylePos.scpt"></script>
  23.         </p>
  24.         <p>Loop Functions Script
  25.         <script language="JavaScript1.2" src="../../GlobalScripts/MainLoop.scpt" cyberversion="N1.2"></script>
  26.         </p>
  27.         <p>Slide Functions Script
  28.         <script language="JavaScript1.2" src="../../GlobalScripts/SlideLayer.scpt"></script>
  29.         </p>
  30.         <p>Idle Action Main Script
  31.         <script language="JavaScript1.2" cyberversion="N1.2"><!--
  32. function CSIdleObject (action) {
  33.     this.conditionAction = action[2];
  34.     this.trueAction = action[3];
  35.     this.falseAction = action[4];
  36.     this.exitIdleIfTrue = action[1];
  37.     this.lastState = false;
  38. }
  39. function CSIdleAction(action) {
  40.     idleObj = new CSIdleObject (action);
  41.     CSStartFunction (CSDoIdle,idleObj);
  42. }
  43. function CSDoIdle (param) {
  44.     idleObject=param.data;
  45.     if (idleObject.conditionAction) {
  46.         gCurrentIdleObject = idleObject;
  47.         var result = CSAction(new Array(idleObject.conditionAction));
  48.         if (result == true && idleObject.lastState==false) {
  49.             idleObject.lastState = result;
  50.             if (idleObject.trueAction) {
  51.                 CSAction(new Array(idleObject.trueAction));
  52.                 if (idleObject.exitIdleIfTrue == true) return false;
  53.             }
  54.         } else if (result == false && idleObject.lastState == true) {
  55.             idleObject.lastState = false;
  56.             if (idleObject.falseAction) {
  57.                 CSAction(new Array(idleObject.falseAction));
  58.             }        
  59.         }
  60.     }
  61.     return true;
  62. }
  63. // -->
  64.         </script>
  65.         </p>
  66.  
  67.         <table cool width="221" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  68.             <tr height="1" cntrlrow>
  69.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  70.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  71.                 <td width="20" height="1"><spacer type="block" width="20" height="1"></td>
  72.                 <td width="196" height="1"><spacer type="block" width="196" height="1"></td>
  73.             </tr>
  74.             <tr height="6">
  75.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  76.                 <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
  77.                 <td width="20" height="6"><spacer type="block" width="20" height="6"></td>
  78.                 <td width="196" height="6"><spacer type="block" width="196" height="6"></td>
  79.             </tr>
  80.             <tr height="3">
  81.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  82.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  83.                 <td width="20" height="21" colspan="1" rowspan="2" valign="top" align="left" xpos="4">
  84.                     <csactioncntrl name="idle" x="4" y="6" width="16" height="16" alignx="left" aligny="top">
  85.                 </td>
  86.                 <td width="196" height="3"><spacer type="block" width="196" height="3"></td>
  87.             </tr>
  88.             <tr height="18">
  89.                 <td width="1" height="18"><spacer type="block" width="1" height="18"></td>
  90.                 <td width="4" height="18"><spacer type="block" width="4" height="18"></td>
  91.                 <td width="196" height="18" colspan="1" rowspan="1" valign="top" align="left" xpos="24">
  92.                     <csactioncntrl type="InfoText" value="Exit Idle If Condition returns True" x="24" y="9" width="189" height="16" alignx="left" aligny="top">
  93.                 </td>
  94.             </tr>
  95.             <tr height="125">
  96.                 <td width="1" height="125"><spacer type="block" width="1" height="125"></td>
  97.                 <td width="4" height="125"><spacer type="block" width="4" height="125"></td>
  98.                 <td width="216" height="125" colspan="2" rowspan="1" valign="top" align="left" xpos="4">
  99.                     <csactioncntrl name="condition" x="4" y="27" width="212" height="116" alignx="scale" aligny="scale">
  100.                 </td>
  101.             </tr>
  102.         </table>
  103.     </body>
  104.  
  105. </html>
  106.